package ProcessList;

import ProcessManager.Process;

public class WaitProcess extends Process
{
	// no unsigned types in Java.
	private long stop;
	private long delay;
	private int delayAmount;

	public WaitProcess(int milliseconds)
	{
		super("Wait Process");
		stop = 0;
		delay = 0;
		delayAmount = milliseconds;
	}
	public void destroy()
	{
	}
	public void UpdateProcess(int milliseconds)
	{
		if (System.currentTimeMillis() >= delay)
		{
			SetKill(true);
		}
	}
	public void InitializeProcess()
	{
		delay = (System.currentTimeMillis() + delayAmount);
	}
}
